package itfuge.testcallback.impl;

import itfuge.testcallback.DownLoadStatusCallback;
import itfuge.testcallback.Server;

public class Client implements DownLoadStatusCallback {

    private Server mServer = null;


    public void download(String url) {
        mServer = new Server(Client.this,url);
        mServer.Run();
    }
    @Override
    public void startDownload() {
        System.out.println("startDownload");
    }

    @Override
    public void stopDownload() {
        System.out.println("stopDownload");
    }

    @Override
    public void showDownloadURL(String url) {
        System.out.println("Downlaod URL: " + url);
    }

    @Override
    public void showDownloadProgress(int progress) {
        System.out.println("DownloadProgress:" + progress + "%");
    }
}
